@import '../mixin.scss';




@include namespace(input-number) {
    width: 100%;
    display: inline-block;
    position: relative;
    line-height: 38px;

    @include namespace(input) {
        -webkit-appearance: none;
        background-color: #fff;
        background-image: none;
        border-radius: 4px;
        border: 1px solid #dcdfe6;
        box-sizing: border-box;
        color: #606266;
        display: inline-block;
        font-size: inherit;
        height: 40px;
        line-height: 40px;
        outline: none;
        padding: 0 15px;
        transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
        width: 100%;
        text-align: center;

        &:focus {
            outline: none;
            border-color: #409eff;
        }

        &--outer {
            position: relative;
        }

        &__decrease,
        &__increase {
            position: absolute;
            z-index: 1;
            top: 1px;
            width: 40px;
            height: auto;
            text-align: center;
            background: #f5f7fa;
            color: #606266;
            cursor: pointer;
            font-size: 13px;
            &:hover~.el-input--outer .el-input {
                outline: none;
                border-color: #409eff;
            }
        }
        &__increase {
            right: 1px;
            border-radius: 0 4px 4px 0;
            border-left: 1px solid #dcdfe6;
        }

        &__decrease {
            left: 1px;
            border-radius: 4px 0 0 4px;
            border-right: 1px solid #dcdfe6;
        }
    }
}